.loader {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;

  &__item {
    &--heart {
      display: inline-block;
      position: relative;
      width: 64px;
      height: 64px;
      transform: rotate(45deg);
      transform-origin: 32px 32px;

      div {
        top: 23px;
        left: 19px;
        position: absolute;
        width: 26px;
        height: 26px;
        background: $red;
        animation: lds-heart 1.2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
      }

      div:after,
      div:before {
        content: " ";
        position: absolute;
        display: block;
        width: 26px;
        height: 26px;
        background: $red;
      }

      div:before {
        left: -17px;
        border-radius: 50% 0 0 50%;
      }

      div:after {
        top: -17px;
        border-radius: 50% 50% 0 0;
      }
    }
  }
}

@keyframes lds-heart {
  0% {
    transform: scale(0.95);
  }
  5% {
    transform: scale(1.1);
  }
  39% {
    transform: scale(0.85);
  }
  45% {
    transform: scale(1);
  }
  60% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(0.9);
  }
}
